package com.smallcc.service;

import com.smallcc.dataobject.ProductCategory;

import java.util.List;
import java.util.Optional;

/**
 * @author 晓风过境
 * @TODO
 * @date 2018/3/28 19:31
 * @day 28
 * @return $text$
 * @title ${CLASS_NAME}
 * @project_name sell
 */
public interface CategoryService {
    //查询一个
    Optional<ProductCategory> findOne(Integer categoryId);
    //查询所有
    List<ProductCategory> findAll();

    List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList);

    ProductCategory save(ProductCategory productCategory);


}
